
/**
 * With the class Artikel you can add a product name and prize. and when you are done
 * you can print out the products name and prize
 * @author Wim & Sander
 * @version 22-11-2011
 */
public class Artikel
{
    /** 
     * variables are declared,
     * naam = Article name
     * prijs = Article prize
     */
    private String naam;
    private double prijs;

    /**
     * The variables get the value that the user puts in.
     */
    public Artikel(String artikelNaam, double artikelPrijs)
    {
        naam = artikelNaam;
        prijs = artikelPrijs;
    }

    
    /**
     * getNaam() returns the name of the product
     *
     */
    public String getNaam()
    {
        return naam;
    }
    /**
     * getPrijs() returns the prize of the prodct
     */
    public double getPrijs()
    {
        return prijs;
    }
        
    /**
     * setNaam sets a new name for the product, this can be used to modify or add a new product name
     *  
     */
    public void setNaam(String newNaam)
    {
        // put your code here
        naam = newNaam;
    }
    /**
     * setPrijs sets a new prize for the product, this can be used to modify or add a new product prize
     *  
     */
    public void setPrijs(double newPrijs)
    {
        // put your code here
        prijs = newPrijs;
    }
     /**
     * printArtikel prints the article name and prize
     *  
     */
    public void printArtikel()
    {
        System.out.println("Artikelnaam: " + naam + ".");
        System.out.println("Artikelprijs: €" + prijs + "");
    }
        
    
}
